package com.jww.cloud.service.user.client;

import com.jww.base.am.model.dos.SysRoleDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "jww-cloud-service-user")
public interface RoleProviderClient {

    @GetMapping("/roles")
    List<SysRoleDO> listByUserId(Long userId);
}
